//
//  main.cpp
//  debug_zen
//
//  Created by lover on 2019/11/29.
//  Copyright © 2019 lover. All rights reserved.
//

#include "config.h"
#include "zen_utf8.h"

void utf8_debug() {
	std::string u = "甲乙丙丁ABCD甲乙丙丁\n";
	std::cout << u << "has " << u.size() << " bytes\n";
	auto u32 = Zen::ToU32(u);
	std::cout << "and " << u32.size() << " words\n";

	std::cout << "first 3 words:" << Zen::ToU8(u32.substr(0, 3)) << endl;
}
